package com.zhengxin.one.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient(name = "user", url = "${rsyInfo.url}")
public interface UserClient {
    //获取个人用户信息
    @RequestMapping(value = "/user/login/", method = RequestMethod.POST)
    Map getClientInfo(@RequestHeader("x-requested-with") String xml, @RequestBody Map map);
}
